#include "Return.h"



Return::Return(Expr* expr)
{
	this->expr = expr;
}

void Return::gen(Label * begin, Label * next)
{
	Stmt::gen(begin, next);
	Expr* r = this->expr->reduce();
	RTL::putData(new Token(tag::RETURN, "return"), NULL, NULL, r);
}


Return::~Return()
{
}
